import axios from '../../request'

const baseUrl = '/login'

// 登录
export const login = (data) => {
  return axios({
    url: baseUrl + '/in',
    method: 'post',
    data
  })
}

// 登出
export const logout = () => {
  return axios({
    url: baseUrl + '/out',
    method: 'post'
  })
}
